#ifndef RPCCHANNEL_H
#define RPCCHANNEL_H

#pragma once
// #include <google/protobuf/stubs/
#include "zookeeperutil.h"
#include <google/protobuf/service.h>
namespace gp = google::protobuf;
class MRpcChannel: public google::protobuf::RpcChannel
{
public:
    MRpcChannel();
    ~MRpcChannel();

private:
    void CallMethod(const gp::MethodDescriptor* method,
                          gp::RpcController* controller, const gp::Message* request,
                          gp::Message* response, gp::Closure* done);

    ZkClient zk_;
};

#endif